package dispatch;

/**
 * A class for creating a new dispatcher
 */
public class Dispatcher {
	
	/**
	 * Variable registering the name of this dispatcher
	 */
	private String name;
	
	/**
	 * Initialize this dispatcher with a given name
	 * 
	 * @param name
	 * 		  The name of this dispatcher
	 */
	public Dispatcher(String name){
		setName(name);
	}
	
	/**
	 * Getter for returning the name of this dispatcher
	 * 
	 * @return returns the name of this dispatcher
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name of this dispatcher to the given name
	 * 
	 * @param name
	 * 		  the new name of this dispatcher
	 */
	private void setName(String name) {
		this.name = name;
	}
}
